

def another_try():
    lis=[1,2,3,4]
    res=[]
    for (i1,v1) in enumerate(lis):
        for (i2,v2) in enumerate(lis):
            for (i3,v3) in enumerate(lis):
                if i1!=i2 and i1!=i3 and i2!=i3:
                    res.append(v1*100+v2*10+v3)
    return res

if __name__ == '__main__':
    res=another_try()
    print(res)
    print(len(res))
